/*
 * @Author       : 邱狮杰
 * @Date         : 2021-03-30 17:07:04
 * @LastEditTime: 2021-03-30 21:23:45
 * @FilePath: /upload-template/webpackUploadTemplate/src/utils/reflection.ts
 * @Description  : 反射相关
 */
// js文件头部注释之后的内容

export function reflectionProperty(
  target: object,
  key: PropertyKey,
  val: any
): void {
  Reflect.set(target, key, val);
}

export function hasReflectionProperty(
  target: object,
  key: PropertyKey
): boolean {
  return Reflect.has(target, key);
}

export function getReflectionProperty<T>(target: object, key: PropertyKey): T {
  return Reflect.get(target, key);
}
